home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / ded / Makefile.bak < prev    next >
Encoding:
Makefile  |  1987-10-14  |  2.9 KB  |  125 lines

  1. #
  2. # Prototype Makefile for src/cmds/*/* directories.
  3. #
  4. # $Header: Makefile.command,v 2.5 87/09/16 13:58:40 douglis Exp $ SPRITE (Berkeley)
  5. #
  6. # Allow makemake
  7.  
  8. LIBDIR = /sprite/lib
  9. INCLDIR = /sprite/lib/include
  10. MISCLIB = /sprite/src/lib/misc
  11. ATTLIB = /sprite/att/lib
  12. # UNIXLIB, ATTINCL, and ATTLINT are to be set for Makefiles in /sprite/att/...
  13. # However, ATTLINT is still blank because no lint library exists.
  14. UNIXLIB = 
  15. ATTINCL =
  16. ATTLINT =
  17. ATTCMDS =
  18. LIBS = ${UNIXLIB}
  19. LINTDIR = ${LIBDIR}/lint
  20.  
  21. #
  22. # There are (at least) two cmds directories, /sprite/cmds for sprite native,
  23. # and /sprite/att/cmds for commands ported from unix.
  24.  
  25. INSTALLDIR = /sprite/${ATTCMDS}cmds
  26. INSTALL = cpstrip
  27.  
  28. IFLAGS = -I. ${ATTINCL}
  29. DBX =       -g
  30. PROFILE =
  31. DFLAGS =
  32. CFLAGS =  ${DBX} ${IFLAGS} ${DFLAGS}
  33. PCFLAGS = ${DBX} ${IFLAGS} ${DFLAGS} ${PROFILE} 
  34.  
  35. CTFLAGS = -t
  36.  
  37. # Define a bunch of commands in the installed commands directory because 
  38. # we might be compiling sprite versions of one of them in this directory, 
  39. # and we don't want to get the wrong one.
  40.  
  41. BIN = /sprite/cmds
  42. LINT = ${BIN}/lint
  43. CC = ${BIN}/cc -m68010
  44. AS = ${BIN}/as -m68010
  45. CP = ${BIN}/cp
  46. RM = ${BIN}/rm
  47. MV = ${BIN}/mv
  48. CP = ${BIN}/cp
  49. ECHO = ${BIN}/echo
  50. CTAGS = ${BIN}/ctags
  51. MKVERSION = ${BIN}/mkversion
  52.  
  53.  
  54. OBJS = Scandir.o ded.o getname.o subr.o bcopy.o
  55. RMOBJS = Scandir.o bcopy.o ded.o getname.o subr.o
  56.  
  57. CSRCS = Scandir.c bcopy.c ded.c getname.c subr.c
  58.  
  59. SRCS = ${CSRCS}
  60.  
  61. HDRS = ded.h
  62.  
  63. PROG = ded
  64.  
  65. LINTFLAGS = ${IFLAGS} -u 
  66. LINTLIBS = ${ATTLINT} ${LINTDIR}/libc.ln
  67.  
  68. ALLSRCS = ${SRCS} ${HDRS} Makefile
  69.  
  70. .c.o: .EXPORT
  71.     ${RM} -f $*.o
  72.     ${CC} ${CFLAGS} -c $*.c
  73.  
  74. all: ${PROG} 
  75.  
  76. ${PROG}: ${OBJS} ${LIBS}
  77.     @${ECHO} "Generating date stamp"
  78.     @${MKVERSION} > version.h
  79.     ${RM} -f $@ version.o
  80.     ${CC} -c ${CFLAGS} ${MISCLIB}/version.c
  81.     ${CC} ${CFLAGS} ${OBJS} version.o ${LIBS} -o $@
  82.  
  83. # By default, without any subdirectories, "make makemake" will do nothing.
  84. # If there are any further subdirectories, it should recursively makemake 
  85. # them.  By using "ignore-me", I avoid the "makemake is up to date"
  86. # diagnostic.
  87.  
  88. makemake: ignore-me
  89.  
  90. ignore-me:
  91.  
  92. install! ${INSTALLDIR}/${PROG}
  93.  
  94. ${INSTALLDIR}/${PROG}: ${PROG}
  95.     ${INSTALL} ${PROG} ${INSTALLDIR}/${PROG}
  96.     
  97. lint:    ${CSRCS} ${HDRS} ${LINTLIBS}
  98.     ${RM} -f lint
  99.     ${LINT} ${LINTFLAGS} ${CSRCS} ${LINTLIBS} > lint
  100.  
  101. clean:
  102.     ${RM} -f lint ${RMOBJS} version.h version.o
  103.  
  104. # For rdist, take the standard makefile and pass in the directory to rdist
  105. # and the name of the binary/binaries not to rdist.
  106. # Allow the user to specify extra flags (like -v) for the rdist via
  107. # the DISTFLAGS variable.
  108.  
  109. DISTFILE = /sprite/lib/misc/distfile.command
  110. DISTFLAGS = 
  111.  
  112. rdist! .PRECIOUS
  113.     rdist ${DISTFLAGS} -f ${DISTFILE} -d DIR=`pwd` -d EXCEPT=\(${PROG}\)
  114.  
  115. DEPFLAGS = -p
  116. DEPFILE = Makefile
  117. #include <makedepend.mk>
  118.  
  119. tags: ${HDRS} ${CSRCS}
  120.     ${RM} -f tags
  121.     ${CTAGS} ${CTFLAGS} ${HDRS} ${CSRCS}
  122.  
  123. # below is automatically generated
  124. # DO NOT DELETE THIS LINE -- make depend depends on it.
  125.